import BaseList from '../base/BaseList.js';
import ConversationListItem from './ConversationListItem.js';

function ConversationList () {
    BaseList.call(this);
}
let prototype = Object.create(BaseList.prototype);
prototype.constructor = ConversationList;
ConversationList.prototype  = prototype;

ConversationList.prototype.updateData = function(conversationList){
     this.setItems(conversationList.map(conversationData=>new ConversationListItem(conversationData)));
}

export default ConversationList;
